Manchester | 26-ITP-September | khalidbih | Sprint 3 | 2-practice-tdd#1177
Manchester | 26-ITP-September | khalidbih | Sprint 3 | 2-practice-tdd#1177khalidbih wants to merge 8 commits intoCodeYourFuture:mainfrom
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
I noticed some minor inconsistency in the code format.
Have you installed the prettier VSCode extension and enabled "Format on save/paste" on VSCode, as recommended in
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md
?
If you have enabled "Format on save" but it is not working, it is likely that you haven't assign a formatter for JS file. This could happen if you have zero or multiple extensions that can format .js file.
If you have installed "Prettier" extension. To assign it as the formatter of JS code, you can try:
- Use "Format document" to format the JS file. Sometimes, VSCode will ask you to choose a formatter, and you can manually select "Prettier".
- Edit
settings.jsonand set Prettier as the default formatter for JS.
See: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
I have fixed the code formatting issue; “Format on Save” is now enabled. Prettier was already installed. Thank you for pointing out the Format on Save setting. |
|
Changes look good. Well done. |
Thank you so much @cjyuan |
Self checklist :
Changelist :
I have completed the coursework/sprint-3/ 2-practice-tdd